$(document).ready(function(){
	$(".mydata").mouseover(function(){
		$(this).addClass("mydataing");
		$(".mydata ul").show();
	});
	$(".mydata").mouseout(function(){
		$(".mydata").removeClass("mydataing");
		$(".mydata ul").hide();
	});
var evOut='1';
var formOns;
$(".deform").hover(function(){
		$(".deform").removeClass("recform");
		$(".recomm").hide();
		if(formOns== $(this).attr("id")){
		if(evOut=='1'){
			$(this).addClass("recform");
			$("."+ $(this).attr("id")).show();
			formOns= $(this).attr("id");
			evOut='2';
		}else{
			evOut='1';
		}}
		else{
			$(this).addClass("recform");
			$("."+ $(this).attr("id")).show();
			formOns= $(this).attr("id");
			evOut='2';
		}
	});		
});
<!--头部登陆、注册后返回前一页   -->
function registerDeal(){
	window.location.href='http://login.yofogo.com/User_perfect.action';
}

function loginOut(){var host = window.location.hostname;
	var col = window.location.protocol;
	var host = window.location.hostname;
	var port = window.location.port;
	if(port==''){port='80';}
	var url = col+"//"+host+":"+port;
	window.location.href='http://sso.yofogo.com/ssoserver/logout.jsp?url='+encodeURIComponent(url+'/logout.do');
}
function loginDeal(){
	var col = window.location.protocol;
	var host = window.location.hostname;
	var port = window.location.port;
	if(port==''){port='80';}
	var path = window.location.pathname;
	var params = window.location.search;
	var url = col+"//"+host+":"+port+path+params;
	window.location.href='http://sso.yofogo.com/ssoserver/login?service='+encodeURIComponent(url);
}
function toYfg(val){
var url = '';
if(val=='0'){url='http://tuan.yofogo.com:80/';}
if(val=='1'){url='https://sso.yofogo.com/ssoserver/login?service='+encodeURIComponent('http://tuan.yofogo.com:80/Group_HomeDetailed.action');}
window.location.href=url;
}
function ReplaceAll(str,sptr,sptr1){
	while (str.indexOf(sptr)>= 0){
   		str = str.replace(sptr, sptr1);
	}
	return str;
}
